﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xaml;
using System.CodeDom;

namespace NeuroSpeech.XamlExtensions
{
    public class KeyWriter : XamlDirectiveWriter
    {
        public KeyWriter():base(XamlLanguage.Key)
        {

        }


        #region public override void  WriteEndMember(XamlCodeContext context)
        public override void EndMember(XamlCodeContext context)
        {
            XamlItem Peek = context.Peek;
            string name = context.Peek.Value.Value as string;
            Peek.Key = name;
        }
        #endregion

    }
}
